package admin.DAO;

import java.sql.SQLException;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import admin.DTO.ChartDTO;

public class ChartDAOImpl extends SqlMapClientDaoSupport implements ChartDAO {

	@Override
	public ChartDTO ShowAllChart() throws SQLException {
		return (ChartDTO) this.getSqlMapClient().queryForObject("chart.ShowAllChart");
	}

	@Override
	public ChartDTO BadCount() throws SQLException {
		return (ChartDTO) this.getSqlMapClient().queryForObject("chart.BadCount");
	}

	@Override
	public ChartDTO GoodCount() throws SQLException {
		return (ChartDTO) this.getSqlMapClient().queryForObject("chart.GoodCount");
	}

	@Override
	public ChartDTO ShowAllChartA() throws SQLException {
		return (ChartDTO) this.getSqlMapClient().queryForObject("chart.ShowAllChartA");
	}

	@Override
	public ChartDTO BadCountA() throws SQLException {
		return (ChartDTO) this.getSqlMapClient().queryForObject("chart.BadCountA");
	}

	@Override
	public ChartDTO GoodCountA() throws SQLException {
		return (ChartDTO) this.getSqlMapClient().queryForObject("chart.GoodCountA");
	}

}